import axios from "axios";
import { useUserStore } from "@/stores/userStore";
export  function   put (filetype:string,file:File):string {

    const user = useUserStore();
var my_id: number = user.loginstatus ? user.userInfo.id : -1;
    axios.post(`/api/upload/`+my_id,{
    
        file: file
    
}).then((res) => {
    return res.data.path as string;
}).catch((err) => {
    return "";
});
return ""
};